const Router = require('@koa/router');
const fun = require('../controller/admin/basic_client.controller');
const config = require('../config');

const router = new Router({ prefix: `${config.ADMIN_PREFIX_V2}/basic_client` });
// 客户管理
router.post('/create', fun.createClient); // 创建客户
router.post('/delete', fun.deleteClients); // 删除客户
router.post('/update', fun.updateClient); // 更新客户
router.get('/list', fun.getClientList); // 查询客户列表
router.post('/update-state', fun.updateClientState); // 修改客户状态
//导出客户数据
router.post('/export', fun.exportClient);
// 导入客户数据
router.post('/import', fun.importClient);

module.exports = router;
